package com.chenhao.springcloud.chenhaodesignservice.pattern.structural.decorator.v1;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/23 11:11
 */
public class Test {
    public static void main(String[] args) {
        Battercake battercake = new Battercake();
        System.out.println(battercake.getDesc()+"销售价格"+battercake.cost());
        Battercake battercakeWhithEgg = new BattercakeWithEagg();
        System.out.println(battercakeWhithEgg.getDesc()+"销售价格"+battercakeWhithEgg.cost());
    }
}
